package cn.ac.siom.query.service.impl;

import cn.ac.siom.query.dao.IP_basicDAO;
import cn.ac.siom.query.service.IP_basicService;
import cn.ac.siom.query.vo.P_basic;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.sql.SQLException;
import java.util.List;

@Service
public class P_basicServiceImpl implements IP_basicService {


    @Resource
    private IP_basicDAO p_basicDAO;


    @Override
    public List<P_basic> list() throws SQLException {
        return this.p_basicDAO.findAll();
    }

    @Override
    public List<P_basic> list_NO(Integer i_id) throws SQLException {
        List<P_basic> p_basic=this.p_basicDAO.findNo(i_id);
        return p_basic;
    }

    @Override
    public List<P_basic> list_page(Integer rownum, Integer page_id) throws SQLException {
        List<P_basic> p_basic=this.p_basicDAO.findPage(rownum,page_id);
        return p_basic;
    }

    @Override
    public Integer list_count() throws SQLException {
        Integer  p_basic=this.p_basicDAO.findCount();
        return p_basic;
    }

    @Override
    public List<P_basic> listHttp_photo() throws SQLException {
        return this.p_basicDAO.findHttp_Photo();
    }
}
